<?php

Yii::import('application.models._base.BaseProductResource');


class ProductResource extends BaseProductResource
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
		
	public function relations(){
	    return array(
	       'images' =>  array(self::BELONGS_TO,'ResourceImg','','on' => 't.resource_id = images.id'  ),
	    );
	}
}